//
//  HMAudioPlayerController.h
//  MOMU
//
//  Created by mynSoo on 2017/1/3.
//  Copyright © 2017年 mynSoo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HMListenAnyTimeResModel.h"

@interface HMAudioPlayerController : UIViewController

+ (instancetype)sharePlayer;

@property (nonatomic, strong) NSArray *modelArray;

@property (nonatomic, readonly, getter=isPlaying) BOOL state;

@property (nonatomic, weak) HMListenAnyTimeResModel *playingModel;

- (NSInteger)listCount;

- (void)play;
- (void)playWithIndex:(NSInteger)index;
- (void)stop;
- (void)playPrevious;
- (void)playNext;

// 设置播放列表 (自动播放)
- (void)setModelArray:(NSArray *)modelArray;

// 设置播放列表 带有默认下标 (自动播放)
- (void)setModelArray:(NSArray *)array index:(NSInteger)index;
@end
